function Plot_data(data)
if size(data,1) ==1
    hist(data,80);
elseif size(data,1) == 2
    x = data(1,:);
    y = data(2,:);
    plot(x,y,'r.');
elseif size(data,1) == 3
    x = data(1,:);
    y = data(2,:);
    z = data(3,:);
    plot3(x,y,z,'r.');
else 
    fprintf('can not deal with the case!\n')
end

